@import "~@/mixin.less";

@height: 568px;
@weight: 320px;
.container {
  width: @weight;
  height: @height !important;
  position: relative;
  overflow: hidden;
}

/**
 - 235
 */
.fullPage {
  height: @height !important;
  width: @weight;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 100;
  position: absolute;
  left: 0;

  &::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  .title {
    position: fixed;
    top: 0;
    z-index: 100;
    text-align: center;
    width: @weight;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2em;
    padding: 10px 0;

    .setting {
      color: #fff;
      opacity: .9;
      position: absolute;
      right: 0;
      margin-right: 10px;
      cursor: pointer;
    }
  }

  @tHeight: @height * 3/5;

  .bgWrapper {
    height: @tHeight;
    overflow: hidden;
    position: absolute;
    width: 200%;
    left: -40%;
    //border: 0.5px solid rgba(var(--themeColor), 0.4);
    box-shadow: 0 0 1px 1px rgba(var(--themeColor), 0.4);
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
    animation: bgRotate 3s linear -3s infinite alternate;

    .bg {
      height: 100%;
      position: relative;
      background-color: rgb(var(--themeColor));
      overflow: hidden;
      transition: all 2s;
    }

    .wave {
      position: absolute;
      width: 100%;
      height: 100%;

      &::before,
      &::after {
        content: "";
        position: absolute;
        width: 670px;
        height: 670px;
        top: 450px;
        left: 50%;
        background-color: rgba(255, 255, 255, .4);
        border-radius: 45%;
        transform: translate(-50%, -70%) rotate(0);
        animation: rotate 6s linear infinite;
        z-index: 10;
      }
    }

    .wave1 {

      &::before {
        left: 75%;
      }

      &::after {
        width: 680px;
        height: 680px;
        border-radius: 48%;
        animation: rotate 6s linear -5s infinite;
        left: 60%;
      }
    }

    .wave2 {
      &::before {
        width: 660px;
        height: 660px;
        left: 40%;
        border-radius: 42%;
        animation: rotate 6s linear -7s infinite;
      }

      &::after {
        width: 650px;
        height: 650px;
        left: 35%;
        border-radius: 38%;
        animation: rotate 6s linear -2s infinite;
      }
    }
  }

  .notifyWrapper {
    position: fixed;
    left: 0;
    top: 55px;
    z-index: 1111;
    display: flex;
    flex-direction: column;
  }

  .notify {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    padding: 4px 6px 4px 4px;
    background-color: rgba(157, 157, 157, 0.5);
    color: #fff;
    margin: 2px 0;
    font-size: .7em;
  }

  .page {
    height: @height;
    width: @weight;
    position: relative;
    top: 0;

    &::-webkit-scrollbar {
      width: 0;
      display: none;
    }

    .header {
      height: @tHeight;
      width: 100%;
      z-index: 100;
      position: relative;

      .content {
        position: absolute;
        max-height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        color: #fff;
        padding-bottom: 10px;

        .row1 {
          margin-top: 50px;
          align-items: center;
          justify-content: space-around;
          display: flex;
          flex-direction: row;

          .skycon {
            display: flex;

            .small {
              width: 100px;
              //box-sizing: border-box;
            }
          }

          .descWrapper {
            display: flex;
            align-items: flex-start;

            .temperature {
              padding-right: 5px;
              align-items: center;
              justify-content: flex-end;
              display: flex;
              font-size: 4.5em;
              font-weight: 200;

              .flag {
                font-size: .4em;
                top: -.7em;
              }
            }

            .right {
              align-self: center;
              padding-left: 5px;
              display: flex;
              flex-direction: column;
            }

          }
        }

        .text {
          text-align: center;
          margin: 0 10px;
          word-break: keep-all;
        }

      }

    }

    .body {
      height: @height/2 + 10;
      position: relative;
      z-index: 100;

      .panel {
        .row {
          padding: 6px 15px;

          .rowCol {
            display: flex;
            justify-content: center;
          }
        }
      }

      .index, .d7, .h24 {
        padding: 0 10px 0;

        .rowWrapper {
          display: flex;
          position: relative;
          align-items: center;
          margin-bottom: 8px;

          .wrow {
            overflow-x: scroll;
            overflow-y: hidden;
            white-space: nowrap;

            &::-webkit-scrollbar {
              width: 0;
              display: none;
            }
          }

          .leftBtn, .rightBtn {
            -moz-user-select: none;
            position: absolute;
            cursor: pointer;
            opacity: .8;
            align-items: center;
            height: 100%;
            display: none;
          }

          .leftBtn {
            left: 0;
          }

          .rightBtn {
            right: 0;
          }

          &:hover {
            .leftBtn, .rightBtn {
              display: flex;
            }

          }
        }
      }
    }

  }

  :global {
    .ant-carousel .slick-dots {
      top: 38px;
      position: fixed;
      width: @weight;
      z-index: 1000;
    }
  }
}

// 波浪
@keyframes rotate {
  50% {
    transform: translate(-50%, -75%) rotate(180deg);
  }
  100% {
    transform: translate(-50%, -70%) rotate(360deg);
  }
}

@keyframes bgRotate {
  0% {
    left: -40%;
  }
  100% {
    left: -60%;
  }
}
